@import "../../scss/mixin";
.switcher-wrap {
  position: relative;
  width: 100%;
  height: 44px;
  line-height: 44px;
  background-color: #fff;
  display: flex;
  flex-direction: row;
  .si {
    flex: 1;
    height: 100%;
    text-align: center;
    box-sizing: border-box;
    &:active {
      background-color: #efefef;
      font-size: 15px;
      color: #007aff;
    }
  }
  .switcher-active {
    color: #007aff;
    border-bottom: 4px solid #007aff;
  }
}
.pull-wrap{
  position: relative;
  width: 100%;
  height: calc(100% - 44px);
  overflow: hidden;
}
.sort-wrap{
  position: absolute;
  top:0;
  right: 0;
  height:100%;
  width: 80%;
  opacity: 0;
  z-index:11;
}
.data-list-wrap {
  width: 100%;
  .d-item {
    padding: 12px;
    border-radius: 4px;
    background-color: #fff;
    @include flex-display;
    @include flex-align-center;
    margin: 10px;
    .i-content {
      @include flex-size(1);
      @include wordHidden;
      .i-title {
        font-size: 16px;
        @include wordHidden;
      }
      .i-time, .i-name {
        font-size: 14px;
        margin-top: 4px;
      }
      .i-time {
        color: $gray;
      }
    }
    .i-img {
      width: 44px;
      height: 44px;
      margin-right: 10px;
    }
    @mixin state($font,$icon) {
      font-size: 14px;
      position: relative;
      padding-left: 20px;
      color: $font;
      &:before {
        @include iconCode($icon);
        font-size: 17px;
        color: $font;
        position: absolute;
        top: -1px;
        left: 0;
      }
    }
    .i-state-pend {
      @include state($red, "\e699")
    }
    .i-state-done {
      @include state($green, "\e629")
    }
    .i-state-complete {
      @include state($gray, "")
    }
  }
}
